package com.util.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName commodity
 * @Description 商品信息实体类
 * @Author Kx
 * @Date 2025/3/31 15:24
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
public class Commodity {
    private int cId; // 商品编号
    private String cName; // 商品名称
    private int cNumber; // 商品数量
    private double cPrice; // 商品价格
    private boolean cStatus; // 商品状态

    @Override
    public String toString() {
        return "Commodity{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                ", cNumber=" + cNumber +
                ", cPrice=" + cPrice +
                ", cStatus=" + cStatus +
                '}';
    }
}
